<%@page import="com.xnx3.j2ee.Global"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>  
<%@ taglib uri="http://www.xnx3.com/java_xnx3/xnx3_tld" prefix="x" %>
<jsp:include page="/wm/common/head.jsp">
	<jsp:param name="title" value="列表"/>
</jsp:include>
<script>
wm.load.synchronizesLoadJs('/superadmin/goodsType/getGoodsJs.json?token='+wm.token.get());
</script>
<style type="text/css">
.layui-table img {
    max-width: 49px;
    max-height:29px;
}
</style>
<script src="/<%=Global.CACHE_FILE %>GoodsType_typeid.js"></script>
<jsp:include page="/wm/common/list/formSearch_formStart.jsp" ></jsp:include>
	<jsp:include page="/wm/common/list/formSearch_input.jsp">
		<jsp:param name="iw_label" value="商品名称"/>
		<jsp:param name="iw_name" value="title"/>
	</jsp:include>
	<jsp:include page="/wm/common/list/formSearch_input.jsp">
			<jsp:param name="iw_label" value="分类名称" />
			<jsp:param name="iw_name" value="typeid" />
			<jsp:param name="iw_type" value="select" />
	</jsp:include>
	
    <input class="layui-btn iw_list_search_submit" type="submit" value="搜索" />
    
</form>
<div class="tabox" style="padding:0 20px;min-width: 1000px;">
<table class="layui-table iw_table" style="min-width: 1000px;">
	<thead>
	    <tr>
			<th width="100px" style= "text-align:center">ID</th>
	        <th width="150px" style= "text-align:center">名称</th>
	        <th width="100px" style= "text-align:center">图标</th>
	        <th width="100px" style= "text-align:center">分类</th>
	        <th width="100px" style= "text-align:center">单位</th>
	        <th width="150px" style= "text-align:center">最低价格(元)</th>
	        <th width="150px" style= "text-align:center">最高价格(元)</th>
	        <th width="150px" style= "text-align:center">上门最少数量(kg)</th>
	    </tr> 
	</thead>
	<tbody>
		<c:forEach items="${list}" var="item">
  		<tr>
  		  <td>${item.id}</td>
          <td><x:substring maxLength="25" text="${item.title }"></x:substring> </td>
          <td style="text-align:center;">
				<a href="${item.titlepic}" target="_black"><img src = '${item.titlepic}' /></a>
		  </td>
          <td><script type="text/javascript">document.write(typeid[${item.typeid}]);</script></td>
          <td>${item.units}</td>
          <td>${item.minMoney/100 }</td>
          <td>${item.maxMoney/100}</td>
          <td>${item.onceMinNum}</td>
      </tr>
    </c:forEach>
 	</tbody>
</table>
</div>
<!-- 通用分页跳转 -->
<jsp:include page="/wm/common/page.jsp"></jsp:include>

<script type="text/javascript">

</script>

<jsp:include page="/wm/common/foot.jsp"></jsp:include>